#pragma once
#include <mysql/mysql.h>

typedef enum{
    LOG_EMERG,
    LOG_ALTER,
    LOG_CRIT,
    LOG_ERROR,
    LOG_WARNING,
    LOG_NOTICE,
    LOG_INFO,
    LOG_DEBUG
}log_priority_t;

int mysql_log(MYSQL *mysql,log_priority_t priority,const char *format,...);
